package io.yx.flx.service;

import io.vertx.ext.web.RoutingContext;
import io.yx.flx.entity.FileInfo;

import java.io.File;

/**
 * 上传接口
 */
public interface UploadService {

    // 公用文件上传,返回文件名
    String uploadReturnName(RoutingContext rc);

    FileInfo ossUpload(File file,boolean compress);

    String uploadNoName(RoutingContext rc);

    // 不压缩
    String uploadNoCompress(RoutingContext rc);

}
